import variables from '@/styles/variables.scss'
const state = {
  appTheme: variables,
  oemMap: {
    activeOem: 'default'
  },
  paymentKeyOptions: {
    0: '其它',
    1: '微信支付',
    2: '余额支付',
    3: '支付宝',
    4: '银联刷卡',
    5: '现金支付',
    6: '云闪付',
    9: '礼品卡',
    11: '农行支付',
    12: '建行龙支付',
    99: '未知'
  },
  paymentOptions: [
    {
      key: 0,
      label: '其它',
      icon: 's-pay-balance'
    },
    {
      key: 1,
      label: '微信支付',
      icon: 's-pay-wx'
    },
    {
      key: 2,
      label: '余额支付',
      icon: 's-pay-balance'
    },
    {
      key: 3,
      label: '支付宝',
      icon: 's-pay-ali'
    },
    {
      key: 4,
      label: '银联刷卡',
      icon: 's-pay-union'
    },
    {
      key: 5,
      label: '现金支付',
      icon: 's-pay-cash'
    },
    {
      key: 6,
      label: '云闪付',
      icon: 's-pay-union'
    }, {
      key: 9,
      label: '礼品卡',
      icon: 's-pay-gift-card'
    }, {
      key: 11,
      label: '农行支付',
      icon: 's-pay-abc'
    }, {
      key: 12,
      label: '建行龙支付',
      icon: 's-pay-ccb'
    },
    {
      key: 99,
      label: '其它',
      icon: 's-pay-balance'
    }
  ],
  payChannelTypeKeyOptions: {
    0: '会员储值/礼品卡等',
    101: '微信官方普通商户',
    102: '微信官方直连',
    103: '微信直连普通商户商业版',
    104: '微信直连服务商商业版',
    201: '支付宝',
    202: '银联刷卡',
    301: '威富通',
    302: '富友',
    303: '易票联',
    304: '嘉联支付',
    305: '腾讯云支付',
    306: '瑞银信',
    307: '智付',
    401: '云卓',
    402: '国通星驿',
    408: '旺pos',
    501: '银联前置',
    502: '银联云闪付',
    601: '农行',
    602: '建行',
    603: '工行',
    604: '交行',
    611: '农行平台商'
  },
  // 鉴权接口
  authorizeApi: {
    '/sp_admin/oem/save': { sceneStr: 'oem', needAdmin: false },
    '/sp_admin/business/reset_pw': { sceneStr: 'cMchPw', needAdmin: false },
    '/sp_admin/sp_mgr/reset_pw': { sceneStr: 'cSpPw', needAdmin: false },
    '/sp_admin/personal/modify_pw': { sceneStr: 'spPw', needAdmin: true },
    '/sp_admin/pay_config/getOpenPayMchid': { sceneStr: 'openPayMch', needAdmin: false },
    '/sp_admin/pay_config/refreshOpenPayMchid': { sceneStr: 'refreshPayMch', needAdmin: false }
  }
}

const mutations = {

}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

